/**
 * Created by zhangbiao on 2017/8/23.
 */

"use strict";

//=========================
// 引入子组建和子组建reducer
//=========================
export const CHANGE_DESCRIPTION = "CHANGE_DESCRIPTION" ;

let initialState = {
    tags : [] ,
    title:"",
    time:"",
    categoryName:"",
    introduction:"",
    channels:[],
} ;

export const FilmDescriptionReducers = (state = initialState, action)=>{
    switch (action.type){
        case CHANGE_DESCRIPTION :
            //console.log("######",action.data.channels)
                state = action.data ;
        default :
            return state ;
    }
} ;

export const mapStateToProps = state =>{
    return {
        filmDetailDescription : state.app.filmDetail.filmDescription

    }
} ;

export const mapDispatchToProps = dispatch =>{
    return{
    }
} ;

